package com.atguigu.lease.mp.service.impl;

import com.atguigu.lease.mp.entity.User;
import com.atguigu.lease.mp.mapper.UserMapper;
import com.atguigu.lease.mp.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

//    @Autowired
//    UserMapper userMapper;

    @Override
    public List<User> getUserByMyUserName(String name) {

        List<User> users = baseMapper.selectUserByMyUserName(name);

        return users;
    }
}
